//
//  EditSettingsViewController.h
//  FreeSWITCH_Console
//
//  Created by Christopher Danielson on 4/6/09.
//  Copyright 2009 MaxPowerSoft, LLC. All rights reserved.
//

#define kNumberOfEditableRows	4
#define kNameRowIndex			0
#define kHostRowIndex			1
#define kPortRowIndex			2
#define kPasswordRowIndex		3

#define kLabelTag				4096


#import <UIKit/UIKit.h>
#import "ParentViewController.h"

@class UserSetting;

@interface EditSettingsViewController : ParentViewController <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate> {
	UserSetting *userSetting;
	NSArray *fieldLabels;
	NSMutableDictionary *tempValues;
	UITableView *tableView;
	UITextField *textFieldBeingEdited;
}

@property (nonatomic, retain) UserSetting *userSetting;
@property (nonatomic, retain) NSArray *fieldLabels;
@property (nonatomic, retain) NSMutableDictionary *tempValues;
@property (nonatomic, retain) UITableView *tableView;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;

-(IBAction) cancel: (id)sender;
-(IBAction) save: (id)sender;
-(IBAction) textFieldDone: (id)sender;

- (void) resetTable;

@end
